
function getPossibleLocations(lat, lng, callback) {
    var url = "/Trabalho_PD/webresources/GoogleGeoService/getPossibleLocations/lat=" + lat + "&lng=" + lng;
    $.ajax({
        type: "GET",
        dataType: "json",
        url: url,
        cache: false,
        success: function (data, textStatus, jqXHR) {
            callback({lat: lat, lng: lng, address: data["address"]});
        },
        error: function (jqXHR, textStatus, errorThrown) {
            alert("Error: " + textStatus);
        }
    });
}